package com.wc.Dao;

import com.wc.FAKE.DB;
import com.wc.domain.Dept;

/**
 * @ClassName:DeptDaoImpl
 * @Author: 鹿建文
 * @Date: 2022/3/23  - 16:29
 * @Describe:
 */
public class DeptDaoImpl implements DeptDao {
    @Override
    public Dept selectDeptByDeptno(Integer deptno) {
        for (Dept dept : DB.depts) {
            if (dept.getDeptno().equals(deptno)){
                return dept;
            }
        }
        return null;

    }
}
